package cn.tannn.ops.nginx.controller.dto;

import cn.tannn.ops.common.constant.CloudEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 新增云厂商的AccessKey
 *
 * @author <a href="https://t.tannn.cn/">tan</a>
 * @version V1.0
 * @date 2024/8/29 下午1:53
 */
@Schema(description = "新增云厂商的AccessKey")
@ToString
@Getter
@Setter
public class CloudAccessKeyAdd {

    @Schema(description = "数据名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank
    String name;

    /**
     * 云厂商账号
     */
    @Schema(description = "云厂商账号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank
    String account;

    /**
     * 账号ID
     */
    @Schema(description = "账号ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank
    String accessId;

    /**
     * 账号Secret
     */
    @Schema(description = "账号Secret", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank
    String accessSecret;

    /**
     * 云厂商名字 - 固定几个
     *
     * @see CloudEnums
     */
    @Schema(description = "云厂商名字", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    CloudEnums cloud;

    @Schema(description = "备注")
    String remark;
}
